/* Lith Harbor Vip Cab
   Made By ups2000ups
*/

void npc(Player @player, NPC @npc) {
	int state = npc.getState();
	int cost = 10000;
        if(player.getJob() == 0 || player.getJob() == 1000){
		cost /= 10;
	}
	if(state == 0){
		npc.addText("Hey there! This cab is for VIP customers only. Instead of just taking you to different towns like the regular cabs, we offer a much better service worthy of VIP class. it's a bit pricy but for only #b" + cost + " mesos#k, we'll take you safely to the #bant tunnel#k");
		npc.sendNext();
	}
	else if(state == 1){
		npc.addText("The #bAnt Tunnel#k is located deep inside the dungeon that lies at the center of Victoria Island, where the 24 Hour Mobile Store is.\r\nWould You like to go there for #b" + cost + " mesos#k?");
		npc.sendYesNo();
	}
	else if(state == 2){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= cost){
				player.giveMesos(-cost);
				player.changeMap(105070001);
                                npc.end();
			} 
			else{
				npc.addText("Sorry but you don't have enough of mesos!");
             			npc.sendOK();
                                npc.end();
			}
		}
		else {
			npc.addText("This town also has a lot to offer. Come back to me if you feel the need to go to the #bAnt Tunnel#k!");
			npc.sendOK();
                        npc.end();
		}
	}
}